package io.jpress.modulegen;

import io.jpress.codegen.ModuleGenerator;

/**
 * Created by black on 2019/3/9.
 */
public class TestModuleGenerator {
    private static String dbUrl = "jdbc:mysql://127.0.0.1:3306/jpress";
    private static String dbUser = "root";
    private static String dbPassword = "123456";

    private static String moduleName = "test";
    private static String dbTables = "test,test_category,test_comment";
    private static String modelPackage = "io.jpress.module.test.model";
    private static String servicePackage = "io.jpress.module.test.service";


    public static void main(String[] args) {

        ModuleGenerator moduleGenerator = new ModuleGenerator(moduleName, dbUrl, dbUser, dbPassword, dbTables, modelPackage, servicePackage);
        moduleGenerator.gen();

    }
}
